package com.cropdoctor.service;

import com.cropdoctor.common.Result;
import com.cropdoctor.model.constants.PageParams;
import com.cropdoctor.model.constants.PageResult;
import com.cropdoctor.model.dto.PostDto;
import com.cropdoctor.model.po.PostPo;
import com.cropdoctor.model.vo.PostVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface PostService {
    Result<String> createPost(PostPo postPo, MultipartFile img);

    Result<String> userDeletePost(long idPost);

    Result<List<PostPo>> getUserAllPost();

    Result<PageResult<PostVO>> getAllPost(PageParams pageParams, String keyword);

    Result<String> likePost(long idPost);

    Result<String> adminDeletePost(long idPost);


}
